import VueRouter from 'vue-router';
import indexs from '../../components/index/index.vue';
import shows from '../../components/index/show.vue';
import types from '../../components/index/type.vue';
import mys from '../../components/index/my.vue';
import shopcars from '../../components/index/shopcar.vue';
import details from '../../components/product/details.vue';
import logins from '../../components/index/login.vue';
import emailIns from '../../components/index/emailIn.vue';
import elsas from '../../components/detail/elsa.vue';
export default new VueRouter({
  routes: [
    {
      path: '/showss',
      component: indexs,
      children: [
        {
          path: '/showss',
          component: shows
        },
        {
          path: '/typess',
          component: types
          
        },
        {
          path: '/myss',
          component: mys
        }
      ]
    },
    {
      path: '/shopcarss',
      component: shopcars
    },
    {
      path:'/loginss',
      component:logins
    },
    {
      path:'/emailInss',
      component:emailIns
    },
    {
      path: '/detailss/:a/:b',
      component: details
    },
    {
      path:'/elsa/:c/:d',
      component:elsas
    },
    {
      path: '/*',
      redirect: '/showss'//直接路由跳转
    }
  ]
})